package com.slaffka.model;

import org.jboss.solder.core.Veto;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: slaffka
 * Date: 25.11.12
 * Time: 19:55
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Veto
public class Filial implements Serializable {

    private Long filialId;
    private String abbreviation;
    private String name;
    private Double capital;

    public Filial(){}

    public Filial(String abbreviation, String name,  Double capital){
        this();
        this.name = name;
        this.abbreviation = abbreviation;
        this.capital = capital;
    }

    @Id
    @Column(name = "filial_id")
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getFilialId() {
        return filialId;
    }

    public void setFilialId(Long filialId) {
        this.filialId = filialId;
    }

    public String getAbbreviation() {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getCapital() {
        return capital;
    }

    public void setCapital(Double capital) {
        this.capital = capital;
    }
}
